<!DOCTYPE html>
<html lang="zh-EN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    div {
        /* width: 300px;
        height: 200px;
        border: 3px solid blue;
        /*层叠性  下面把上面给覆盖掉*/
        /* border-top: 3px solid red; */
        /* width: 190px;
        height: 190px;
        background-color: pink;
        /*边框会让盒子变大*/
        /* border: 10px solid red; */
        /* width: 160px;
        height: 160px;
        background-color: pink;
        /*内边距会让盒子变大*/
        /* padding: 20px; */


    }

    .nav {
        height: 41px;
        background-color: #fcfcfc;

        border-top: 3px solid #ff8500;
        border-bottom: 1px solid #fcfcfc;
        line-height: 41px;
        /*行高等于盒子高实现垂直居中*/
    }

    .nav a {
        color: #4c4c4c;
        text-decoration: none;
        display: inline-block;
        /*让a变成行内块元素*/
        padding: 0 20px;

    }

    .nav a:hover {
        background-color: #ff8500;
    }
</style>

<body>
    <div class="nav">

        <a href="./ces.html">设为首页</a>
        <a href="#">手机新浪网</a>
        <a href="#">移动客户端</a>
        <a href="#">博客</a>
        <a href="#">微博</a>
        <a href="#">关注我</a>

    </div>


</html>